//
//  CLDataBaseHandle.h
//  I-want-go
//
//  Created by dllo on 15/11/2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "CLguidang.h"

typedef NS_ENUM(NSUInteger, SelectCLguidang) {
    Intable,
    NotInTable,
    SelectError,
};

@interface CLDataBaseHandle : NSObject

{
    sqlite3 *dbpoint;
}

+ (instancetype)shareDataBasaHandle;
// 打开
- (void)openDB;

// 创建
- (void)createTable;

// 搜索方法
- (SelectCLguidang)isHaveInTable:(CLguidang *)guidang;

// 收藏
- (void)saveMovieInDB:(CLguidang *)guidang;

// 删除
- (void)deleteGuiInDB:(CLguidang *)guidang;

// 查找全部
- (NSMutableArray *)selectArrMovie;














@end
